import service from './request'

// 列表数据
export function classpage (params, page = 1) {
  return service({
    url: '/admin/class/page/' + page,
    method: 'get',
    params: params
  })
}
export function classpageCount (params) {
  return service({
    url: '/admin/class/page/count' ,
    method: 'get',
    params: params
  })
}
// 系的名称/admin/major/names
export function majornames(){
    return service({
    url: '/admin/major/names',
    method: 'get',
  })
}
// 添加
export function classadd(data){
  return service({
    url:"/admin/class",
    method:"post",
    data
  })
}
// 获取信息
export function classhq(id){
  return service({
    url:"/admin/class/"+id,
    method:"get",
   
  })
}
// 编辑
export function classedit(data){
  return service({
    url:"/admin/class/",
    method:"put",
    data:data
  })
}
// 删除

export function classPagedelet(id){
    return service({
        url:"/admin/class/"+id,
        method:"delete",
    })
}